package com.tian.mapper;

import com.tian.entity.ChargePayOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ChargePayOrderMapper {
    int deleteByPrimaryKey(Long id);
    int insert(ChargePayOrder record);
    ChargePayOrder selectByPrimaryKey(Long id);
    ChargePayOrder selectByChargeRecordId(Long chargeRecordId);
    ChargePayOrder selectByPrimaryOrder(String orderNo);
    List<ChargePayOrder> selectAll();
    int updateByPrimaryKey(ChargePayOrder record);

    List<ChargePayOrder> selectByUserIdAndStatus(@Param("userId") Long userId,@Param("status") int status);
}